package org.emergency.framework.otherDatasourse;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.emergency.framework.constant.ModelConstant;
import org.emergency.framework.model.TbUser;

@Entity
//@Table(name="TbSysConfig",catalog=ModelConstant.DB_CATALOG,schema=ModelConstant.DB_SCHEMA)
@Table(name="TbSysConfig",catalog=ModelConstant.DB_CATALOG)
public class TbSysConfig implements java.io.Serializable{
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	@Id
	@Column(name="TbSysConfigId")
	private int TbSysConfigId;
	
	/**
	 * 条目，简单描述
	 */
	@Column(name="title",length=ModelConstant.STRING_LENGHT_1)
	private String title;
	
	/**
	 * 当前数据的值
	 */
	@Column(name="value",length=ModelConstant.STRING_LENGHT_1)
	private String value;
	
	/**
	 * 详细描述
	 */
	@Column(name="description",length=ModelConstant.STRING_LENGHT_1)
	private String description;


	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getTbSysConfigId() {
		return TbSysConfigId;
	}

	public void setTbSysConfigId(int tbSysConfigId) {
		TbSysConfigId = tbSysConfigId;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + TbSysConfigId;
		result = prime * result
				+ ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result + ((value == null) ? 0 : value.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TbSysConfig other = (TbSysConfig) obj;
		if (TbSysConfigId != other.TbSysConfigId)
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (value == null) {
			if (other.value != null)
				return false;
		} else if (!value.equals(other.value))
			return false;
		return true;
	}

	
	
	
}
